from frontend.roleApplication import RoleApplication
from frontend.form import Type

class HitmanApp(RoleApplication):
   
    def __init__(self):
        
        super(HitmanApp, self).__init__("BreakALeg", "Hitman") # use actual work flow name and role name
        self.register_sink_step("Execute", self.hitman_decide_form_creator, name_fields=["sequence", "Nationality", "BusinessType"]) # use actual name for this task

    def hitman_decide_form_creator(self, stepname, form):        
        form.add_static_label('How would you like to kill the punk:')
        form.add_field(Type.CHOICE, "Weapon", choices=['Piano Wire', 'Knife', 'Gun'])

if __name__ == '__main__':
    app = HitmanApp()
    app.MainLoop()